﻿<UserControl x:Class="PreguntaEjercicio"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="400" d:DesignWidth="600" xmlns:my="clr-namespace:ASAP.Cliente">
    <Grid>

        <Grid.RowDefinitions>
            <RowDefinition ></RowDefinition>
            <RowDefinition ></RowDefinition>
            <RowDefinition ></RowDefinition>
            <RowDefinition Height="50"></RowDefinition>
            <RowDefinition Height="50"></RowDefinition>
            <RowDefinition Height="50"></RowDefinition>
            <RowDefinition ></RowDefinition>

        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions >
            <ColumnDefinition Width="110"></ColumnDefinition>
            <ColumnDefinition></ColumnDefinition>
        </Grid.ColumnDefinitions>

        <!-- Pregunta -->
        <Label Grid.Column="0" Grid.Row="0" Content="Pregunta:" FontSize="16" HorizontalAlignment="Left"  Margin="5" FontWeight="Bold" />
        <TextBox Grid.Column="1" Name="tbCastellano"  FontSize="16" Margin="5" TextWrapping="Wrap" />

        <!-- Respuesta -->
        <Label Grid.Column="0" Grid.Row="1" Content="Respuesta:" FontSize="16" HorizontalAlignment="Left" Margin="5" FontWeight="Bold" />
        <TextBox Grid.Column="1" Grid.Row="1" Name="tbRespuesta"  FontSize="16" Margin="5" TextWrapping="Wrap" />

        <!-- Solucion -->
        <Label Grid.Column="0" Grid.Row="2" Content="Solución:" FontSize="16" HorizontalAlignment="Left" Margin="5" FontWeight="Bold" />
        <TextBox Grid.Column="1" Grid.Row="2" Name="tbIngles"  FontSize="16" Margin="5" TextWrapping="Wrap" />

        <!--Solución -->
        <Button Grid.Column="1" Grid.Row="3" Name="btnSolucion" Margin="5"  >
            <StackPanel Orientation="Horizontal" >
                <TextBlock FontSize="16">Solución (F3)</TextBlock>
            </StackPanel>
        </Button>

        <!-- Resultado -->
        <Label Grid.Column="0" Grid.Row="4" Content="Resultado:" 
               FontSize="16" HorizontalAlignment="Left" Margin="5" FontWeight="Bold" />
        <StackPanel Grid.Column="1" Grid.Row="4" Orientation="Horizontal" 
                    VerticalAlignment="Center"  HorizontalAlignment="Center" Margin="5">
            <RadioButton Name="rbCorrecto" Margin="0,0,40,0" >
                <StackPanel Orientation="Horizontal" >
                    <Image  Source="/ASAP.Cliente;component/Images/Select.ico" Margin="0,0,5,0" Width="30" Height="30"/>
                    <TextBlock FontSize="16" VerticalAlignment="Center">Correcto (F4)</TextBlock>
                </StackPanel>
            </RadioButton>
            <RadioButton Name="rbIncorreco" Margin="0,0,10,0" >
                <StackPanel Orientation="Horizontal" >
                    <Image  Source="/ASAP.Cliente;component/Images/Close.ico" Margin="0,0,5,0" Width="30" Height="30" />
                    <TextBlock FontSize="16" VerticalAlignment="Center">Incorrecto</TextBlock>
                </StackPanel>
            </RadioButton>
        </StackPanel>

        <!-- Tipo Error -->
        <Label Grid.Column="0" Grid.Row="5" Content="Tipo error:"  Name="Label6" Margin="5" FontSize="16" FontWeight="Bold" />
        <Grid Grid.Column="1" Grid.Row="5">
            <Grid.ColumnDefinitions >
                <ColumnDefinition></ColumnDefinition>
                <ColumnDefinition Width="Auto"></ColumnDefinition>
            </Grid.ColumnDefinitions>
            <TextBox Grid.Column="0" Name="tbTipoError" FontSize="16" Margin="5" TextWrapping="Wrap" />
            <Button Grid.Column="1" Content="Tipo error (F5)" Name="btnTipoError" Margin="5" FontSize="16" />
        </Grid>

        <!-- Comentario -->
        <Label Grid.Column="0" Grid.Row="6" Content="Comentario:" FontSize="16" HorizontalAlignment="Left" Margin="5" FontWeight="Bold" />
        <TextBox Grid.Column="1" Grid.Row="6" Name="tbComentario"  FontSize="16" Margin="5" TextWrapping="Wrap" />

    </Grid>
</UserControl>
